package com.big.common.saToken.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 用户登录成功后返回的信息DTO，包含用户基本信息和访问令牌
 * </p>
 *
 * @author 山归岿
 * @create 2025-06-15-19:42
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LoginDTO implements Serializable {

    private String userId;

    private String username;

    private String nickname;

    private String avatar;

    private String token;

    private String tokenType;

    private Long tokenExpireIn;

    private Long roleId;

    private String roleName;

    private Long deptId;

    private String deptName;

    private String[] permissions;
}